package o;

import java.lang.reflect.Method;
import java.util.regex.MatchResult;
import kotlin.Metadata;
import kotlin.jvm.JvmField;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(bv = {1, 0, 3}, d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0003\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0010\u0018\u00002\u00020\u0001:\u0001\u0010B\u0005¢\u0006\u0002\u0010\u0002J\u0018\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u0006H\u0016J\b\u0010\b\u001a\u00020\tH\u0016J\u001a\u0010\n\u001a\u0004\u0018\u00010\u000b2\u0006\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000fH\u0016¨\u0006\u0011"}, d2 = {"Lkotlin/internal/PlatformImplementations;", "", "()V", "addSuppressed", "", "cause", "", "exception", "defaultPlatformRandom", "Lkotlin/random/Random;", "getMatchResultNamedGroup", "Lkotlin/text/MatchGroup;", "matchResult", "Ljava/util/regex/MatchResult;", "name", "", "ReflectAddSuppressedMethod", "kotlin-stdlib"}, k = 1, mv = {1, 1, 15})
public class frt {

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\bÂ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00048\u0006X\u0004¢\u0006\u0002\n\u0000¨\u0006\u0005"}, d2 = {"Lkotlin/internal/PlatformImplementations$ReflectAddSuppressedMethod;", "", "()V", "method", "Ljava/lang/reflect/Method;", "kotlin-stdlib"}, k = 1, mv = {1, 1, 15})
    static final class a {
        @Nullable
        @JvmField
        public static final Method ˏ = null;
        public static final a ॱ = null;

        static {
            /* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: o.frt.a.<clinit>():void
	at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:116)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:249)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:256)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
Caused by: java.lang.NullPointerException
*/
            /*
            r2 = 0;
            r0 = new o.frt$a;
            r0.<init>();
            ॱ = r0;
            r4 = java.lang.Throwable.class;
            r5 = r4.getMethods();
            r0 = "throwableClass.methods";
            o.fsd.ॱ(r5, r0);
            r6 = r5.length;
            r3 = r2;
        L_0x0015:
            if (r3 >= r6) goto L_0x004d;
        L_0x0017:
            r1 = r5[r3];
            r0 = "it";
            o.fsd.ॱ(r1, r0);
            r0 = r1.getName();
            r7 = "addSuppressed";
            r0 = o.fsd.ˋ(r0, r7);
            if (r0 == 0) goto L_0x0047;
        L_0x002a:
            r0 = r1.getParameterTypes();
            r7 = "it.parameterTypes";
            o.fsd.ॱ(r0, r7);
            r0 = o.frd.ˎ(r0);
            r0 = (java.lang.Class) r0;
            r0 = o.fsd.ˋ(r0, r4);
            if (r0 == 0) goto L_0x0047;
        L_0x003f:
            r0 = 1;
        L_0x0040:
            if (r0 == 0) goto L_0x0049;
        L_0x0042:
            r0 = r1;
            ˏ = r0;
            return;
        L_0x0047:
            r0 = r2;
            goto L_0x0040;
        L_0x0049:
            r0 = r3 + 1;
            r3 = r0;
            goto L_0x0015;
        L_0x004d:
            r0 = 0;
            goto L_0x0043;
            */
            throw new UnsupportedOperationException("Method not decompiled: o.frt.a.<clinit>():void");
        }

        private a() {
        }
    }

    public void addSuppressed(@NotNull Throwable th, @NotNull Throwable th2) {
        fsd.ˊ((Object) th, "cause");
        fsd.ˊ((Object) th2, "exception");
        Method method = a.ˏ;
        if (method != null) {
            method.invoke(th, new Object[]{th2});
        }
    }

    @Nullable
    public fta getMatchResultNamedGroup(@NotNull MatchResult matchResult, @NotNull String str) {
        fsd.ˊ((Object) matchResult, "matchResult");
        fsd.ˊ((Object) str, "name");
        throw new UnsupportedOperationException("Retrieving groups by name is not supported on this platform.");
    }
}
